﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Bzzb.Model
{
    [Table(Name = "baozhanggongju")]
    public class BaoZhangGongJu
    {
        [Column(IsIdentity = true, IsPrimary = true, Name = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "gjxtx")]
        [JsonProperty("gjxtx")]
        [Description("工具箱图像")]
        public string Gjxtx { get; set; }

        [Column(Name = "gjxbh")]
        [JsonProperty("gjxbh")]
        [Description("工具箱编号")]
        public string Gjxbh { get; set; }

        [Column(Name = "name")]
        [JsonProperty("name")]
        [Description("工具箱名称")]
        public string Name { get; set; }

        [Column(Name = "whjx")]
        [JsonProperty("whjx")]
        [Description("维护机型")]
        public string Whjx { get; set; }

        [Column(Name = "whzy")]
        [JsonProperty("whzy")]
        [Description("维护专业")]
        public string Whzy { get; set; }

        [Column(Name = "gjxq", IsIgnore = true)]
        [JsonProperty("gjxq")]
        [Description("工具详情")]
        public long[] Gjxq { get; set; }

        [Column(Name = "kqjtwz")]
        [JsonProperty("kqjtwz")]
        [Description("库区具体位置")]
        public string Kqjtwz { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("created")]
        public DateTime Created { get; set; }

        [Column(Name= "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("updated")]
        public DateTime Updated { get; set; }
    }
}
